import request from '@/utils/request'

// 查询材料进出库申请明细列表
export function listMaterialInOutDetail(query) {
  return request({
    url: '/business/materialInOutDetail/list',
    method: 'get',
    params: query
  })
}

// 查询材料进出库申请明细详细
export function getMaterialInOutDetail(id) {
  return request({
    url: '/business/materialInOutDetail/' + id,
    method: 'get'
  })
}

// 新增材料进出库申请明细
export function addMaterialInOutDetail(data) {
  return request({
    url: '/business/materialInOutDetail',
    method: 'post',
    data: data
  })
}

// 修改材料进出库申请明细
export function updateMaterialInOutDetail(data) {
  return request({
    url: '/business/materialInOutDetail',
    method: 'put',
    data: data
  })
}

// 删除材料进出库申请明细
export function delMaterialInOutDetail(id) {
  return request({
    url: '/business/materialInOutDetail/' + id,
    method: 'delete'
  })
}
